package com.wfs.service;

import com.wfs.pojo.Result;
import com.wfs.pojo.User;
import jakarta.validation.constraints.Pattern;
import org.hibernate.validator.constraints.URL;

public interface UserService {
    User findByUsername(String username);

    void save(String username, String password);


    void update(User user);


    void updateAvatar(@URL String avatarUrl, Integer userId);

    void updatePassword(String newPassword, Integer userId);
}
